/**
 * 
 */
package main;

import java.io.IOException;
import java.util.Properties;

/**
 * @author heantai
 * 2013-6-23 上午12:56:11
 * 
 */
public class PropertyUtil {
	
	private final static Properties PROPERTIES=new Properties();
	
	static{
		try {
			PROPERTIES.load(PropertyUtil.class.getResourceAsStream("/config.properties"));
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(-1);
		}
	}
	
	public static String getProperty(String key){
		return PROPERTIES.getProperty(key);
	}

}
